package com.flxz.manage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.flxz.common.annotation.Excel;
import com.flxz.common.core.domain.BaseEntity;

/**
 * 用户支出（管理员）对象 user_expense
 * 
 * @author fl
 * @date 2025-09-12
 */
public class ManageUserExpense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支出ID */
    private Long expenseId;

    /** 用户ID，关联sys_user.user_id */
    @Excel(name = "用户ID，关联sys_user.user_id")
    private Long userId;

    /** 支出类别ID（数字存储，具体内容放在redis） */
    @Excel(name = "支出类别ID", readConverterExp = "数=字存储，具体内容放在redis")
    private Long categoryId;

    /** 支出金额 */
    @Excel(name = "支出金额")
    private BigDecimal amount;

    /** 支出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expenseTime;

    public void setExpenseId(Long expenseId) 
    {
        this.expenseId = expenseId;
    }

    public Long getExpenseId() 
    {
        return expenseId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setExpenseTime(Date expenseTime) 
    {
        this.expenseTime = expenseTime;
    }

    public Date getExpenseTime() 
    {
        return expenseTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("expenseId", getExpenseId())
            .append("userId", getUserId())
            .append("categoryId", getCategoryId())
            .append("amount", getAmount())
            .append("expenseTime", getExpenseTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
